#include <iostream>
#include <memory>
#include <thread>
#include "hot.hpp"
#include "server.hpp"

cloud::DataManager* _data;
void RunServer()
{
    cloud::Server server;
    server.RunModule();
}

void RunHot()
{
    cloud::HotManager hot;
    hot.RunModule();
}

int main()
{
    _data=new cloud::DataManager();
    _data->InitLoad();
    std::thread server(RunServer);
    std::thread hot(RunHot);
    server.join();
    hot.join();
    return 0;
}